﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.SkipOperationsVMs
{
    public partial class SkipOperationsBatchVM : BaseBatchVM<SkipOperations, SkipOperations_BatchEdit>
    {
        public SkipOperationsBatchVM()
        {
            ListVM = new SkipOperationsListVM();
            LinkedVM = new SkipOperations_BatchEdit();
        }

    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class SkipOperations_BatchEdit : BaseVM
    {
        [Display(Name = "SN")]
        public String Snnumber { get; set; }
        [Display(Name = "工序编码")]
        public String OperationCode { get; set; }
        [Display(Name = "工序ID")]
        public String OperationId { get; set; }
        [Display(Name = "工序名称")]
        public String OperationName { get; set; }
        [Display(Name = "工单编号")]
        public String OrderCode { get; set; }
        [Display(Name = "工单ID")]
        public String OrderId { get; set; }
        [Display(Name = "是否跳站")]
        public Boolean? IsSkip { get; set; }
        [Display(Name = "添加时间")]
        public DateTime? AddTime { get; set; }
        [Display(Name = "编辑时间")]
        public DateTime? EditTime { get; set; }
        [Display(Name = "前工序编码")]
        public String LastOperationCode { get; set; }
        [Display(Name = "产线编码")]
        public String LineCode { get; set; }
        [Display(Name = "下一个节点")]
        public String NextNode { get; set; }
        [Display(Name = "后工序编码")]
        public String NextOperationCode { get; set; }
        [Display(Name = "后工序ID")]
        public String NextOperationId { get; set; }
        [Display(Name = "父工序编码")]
        public String ParentOperationCode { get; set; }
        [Display(Name = "父工序ID")]
        public String ParentOperationId { get; set; }
        [Display(Name = "工艺路线名称")]
        public String RouteName { get; set; }
        [Display(Name = "工艺路线编号")]
        public String RouteNumber { get; set; }
        [Display(Name = "工艺路线版本")]
        public String RouteVersion { get; set; }
        [Display(Name = "排程编号")]
        public String ScheduleNumber { get; set; }
        [Display(Name = "排序")]
        public String Sort { get; set; }
        [Display(Name = "是否有效")]
        public Boolean? IsValid { get; set; }

        protected override void InitVM()
        {
        }

    }

}
